#coding=utf8

import uliweb
from uliweb.orm import get_model, set_dispatch_send
from sqlalchemy.sql import select, func, exists

set_dispatch_send(False)

Poll = get_model('poll')
poll = Poll.get(Poll.c.slug == 'selfdevpoll')
if not poll:
    poll = Poll(slug='selfdevpoll', name='自主研发优秀模块评选', desc='',
        link='/poll/selfdev', begin_date='2011-11-1', end_date='2011-12-31')
    poll.save()